package com.jams.goodox.utils;

import android.os.Handler;

/**
 * Created by jams on 2016/7/9.
 * 延时action
 * ***
 * Tel: ***
 */

public class DelayUtils {
    public static void doAfterDelay(int delay, final DelayDoListener delayDoListener){
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                delayDoListener.doAction();
            }
        },delay);
    }

    public interface DelayDoListener{
        void doAction();
    }
}
